
#ifndef   __AUDIO_MENU_MESSAGES__
#define   __AUDIO_MENU_MESSAGES__


#define   AMSG_END_OF_MSG		-1

#define   AMSG_WELCOME							0x0000
#define   AMSG_ENTER_PASSWORD					0x0020
#define   AMSG_PASSWORD_OK						0x0040
#define   AMSG_PASSWORD_WRONG					0x0060
#define   AMSG_BYE								0x0080
#define   AMSG_FOR_ACTIVE_PRESS				0x00A0
#define   AMSG_TO_CHANGE_PRESS				0x00C0
#define   AMSG_OUTPUT_1_NAME					0x00E0
#define   AMSG_OUTPUT_2_NAME					0x0100
#define   AMSG_OUTPUT_3_NAME					0x0120

#define   AMSG_OUTPUT_STATE_OFF				0x0140
#define   AMSG_OUTPUT_STATE_ON				0x0160

#define   AMSG_ENTER_OLD_PASSWORD			0x0180
#define   AMSG_ENTER_NEW_PASSWORD			0x01A0
#define   AMSG_ENTER_NEW_PASSWORD_OK		0x01C0


#define   AMSG_0									0x0200
#define   AMSG_1									0x0210
#define   AMSG_2									0x0220
#define   AMSG_3									0x0230
#define   AMSG_4									0x0240
#define   AMSG_5									0x0250
#define   AMSG_6									0x0260
#define   AMSG_7									0x0270
#define   AMSG_8									0x0280
#define   AMSG_9									0x0290

#define   AMSG_POUND								0x02A0		/* # */
#define   AMSG_ASTERISK							0x02B0		/* * */


/* ====== config menu ====== */
/* Change outputs timeout */

#define   AMSG_TIME_UINT						0x02C0
#define   AMSG_TIME_UNIT_HOUR					0x02E0
#define   AMSG_TIME_UNIT_SECOND				0x02F0
#define   AMSG_PRESS								0x0300
#define   AMSG_PLEASE_ENTER_NUMBER			0x0310
#define   AMSG_BEEP								0x0320

#define   AMSG_NAME								0x0330
#define   AMSG_SPEAK_NEW_NAME					0x0340			
#define   AMSG_AFTER_BEEP 						0x0350	
#define   AMSG_PLEASE							0x0360
#define   AMSG_TO_CHANGE						0x0370


#define   AMSG_CHANGE_OUTPUT_TIMEOUT		0x0400
#define   AMSG_CHOOSE_TIME_UINT				0x0420
#define   AMSG_CHANGE_TIMEOUT					0x0440

#define   AMSG_CHANGE_PASSWORD				0x0460
#define   AMSG_NAME_OUTPUT_RECORD			0x0480

/* need to do */
#define   AMSG_ENTER_NUMBER_OK				0x04A0

/* am - audio menu; msg - message */

extern int am_msg_Welcome[];
extern int am_msg_WelcomePassw[];
extern int am_msg_ChangeOutputs[];
extern int am_msg_ChangeOutput_1[];
extern int am_msg_ChangeOutput_2[];
extern int am_msg_ChangeOutput_3[];
extern int am_msg_Config[];
extern int am_msg_Config_ChangeOutputTimeout[];
extern int am_msg_Config_ChangeOutputTimeout_Timeout[];
extern int am_msg_Config_ChangeOutputTimeout_Unit[];
extern int am_msg_Config_ChangeOutputsName[];
extern int am_msg_Config_ChangeOutputsName_Record[];

extern int *msg_play__msgs;
extern int msg_play__msg;

void am_stop_msg (void);
void am_play_msg ( int msg );
void am_record_msg ( int msg );
void am_audio_on ( int onoff);

void msg_play ( void );
void msgs_play ( void );

#endif
